﻿#ifndef __SS_TEST_MSG_THREAD_H__
#define __SS_TEST_MSG_THREAD_H__
#include <cstdio>
#include "thread/ssMsgThread.h"

using namespace StarSeeker;

class ssTestMsgThread : public ssMsgThread
{
public:
	ssTestMsgThread(int id)
	{
		m_id = id;
		memset(m_count, 0, sizeof(m_count));
	}
private:
	virtual void HandleMessage(ssMsg_s &m)
	{
		if (m.subID>0 && m.subID<50)
		{
			m_count[m.subID]++;
			if (m_count[m.subID]%100==0)
			{
				printf("thread %d msg count:%d msgList:%d\n", m.subID, m_count[m.subID], m_msgList.Size());
			}
		}
	}

public:
	int m_id;
	u32 m_count[50];
};

#endif
